public class SOBitmap extends ArDkBitmap
ArDkBitmap.Type
bitmap, rect, serial, serialBase
Constructor and Description |
---|
SOBitmap(ArDkBitmap s,
int x0,
int y0,
int x1,
int y1)
Create an ArDkBitmap that gives access to a subarea of another ArDkBitmap (sharing the same
underlying native Bitmap).
|
SOBitmap(int w,
int h)
Allocate an SOBitmap of a specific size and default format.
|
SOBitmap(int w,
int h,
ArDkBitmap.Type type)
Allocate an ArDkBitmap of a specific size and format.
|
Modifier and Type | Method and Description |
---|---|
void |
alphaCombine(ArDkBitmap dst,
ArDkBitmap alpha)
Merge our 16-bit bitmap and an 8-bit alpha channel together into an existing 32-bit bitmap.
|
void |
copyFrom(ArDkBitmap src)
Copy the contents of another ArDkBitmap into this one.
|
ArDkBitmap |
createBitmap(int x0,
int y0,
int x1,
int y1)
create a new bitmap representing a portion of this bitmap.
|
void |
invertLuminance() |
allocateBitmap, compareTo, defaultConfig, defaultType, dispose, getBitmap, getHeight, getRect, getSerial, getWidth
public SOBitmap(int w, int h)
w
- width of desired bitmap.h
- height of desired bitmap.public SOBitmap(ArDkBitmap s, int x0, int y0, int x1, int y1)
s
- ArDkBitmap that we want to represent a subrectangle of.x0
- bound of sub rectangle.y0
- bound of sub rectangle.x1
- bound of sub rectangle.y1
- bound of sub rectangle.public SOBitmap(int w, int h, ArDkBitmap.Type type)
w
- width of desired bitmap.h
- height of desired bitmap.type
- pixel format required.public void copyFrom(ArDkBitmap src)
src
- The source bitmap to copy from.public void alphaCombine(ArDkBitmap dst, ArDkBitmap alpha)
dst
- The destination bitmapalpha
- The source alpha maskpublic void invertLuminance()
public ArDkBitmap createBitmap(int x0, int y0, int x1, int y1)
createBitmap
in class ArDkBitmap